import { flagOptions, timeOptions } from '@/services/constants'

// 传入患病时间的value  得到患病时间的文字描述
export const getIllnessTimeText = (value?: number) => {
  if (!value) return ''
  return timeOptions.find((item) => item.value === value)?.label
}

export const getConsultFlagText = (value?: number) => {
  if (value === undefined) return ''
  return flagOptions.find((item) => item.value === value)?.label
}

export const add = (a: number, b: number) => {
  return a + b
}
